package JavaSE.d2;
/*
	编写一个tools工具类，实现以下四个方法
 */
public class Test14 {
    public static void main(String[] args) {
        tools.f1();
        tools.f2();
        tools.f3(10,150);
        System.out.println(tools.f4(102,110));
    }
}
class tools{
    public static void f1(){
        System.out.println("hellow");
    }

    public static void  f2(){
        int num1=10;
        int num2=11;
        if (num1>num2){
            System.out.println(num1);
        }else {
            System.out.println(num2);
        }

    }

    public static void f3(int num1,int num2){
        if (num1>num2){
            System.out.println(num1);
        }else {
            System.out.println(num2);
        }
    }

    public static int f4 (int num1,int num2){
        if (num1>num2){
            return num1;
        }else {
            return num2;
        }
    }

}
